Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix removal of multiple selected connections from browser #57800

Merged
merged 3 commits into from
Jun 19, 2024

Conversation

nyalldawson
Copy link
Collaborator

Adds a new "QgsDataItemGuiProviderUtils" class, with a generic function for handling deletion of browser connection items.

Replace all the duplicate connection deletion logic from the different browser connection providers with calls to the generic function.

In addition to removing a lot of duplicate code, the new generic function correctly handles deletion of multiple selected connections (previously, only the first connection would actually be removed).

Fixes #26276

@github-actions github-actions bot added this to the 3.38.0 milestone Jun 19, 2024
Adds a new "QgsDataItemGuiProviderUtils" class, with a generic
function for handling deletion of browser connection items.

Replace all the duplicate connection deletion logic from the
different browser connection providers with calls to the
generic function.

In addition to removing a lot of duplicate code, the new
generic function correctly handles deletion of multiple
selected connections (previously, only the first connection
would actually be removed).

Fixes qgis#26276
We unfortunately can't rely on the generic function for this
particular connection type, because of complexities relating
to GPKG connection items created as a result of scanning
a folder for GPKG files vs user created/stored connections
Copy link

🪟 Windows builds ready!

Windows builds of this PR are available for testing here. Debug symbols for this build are available here.

(Built from commit 400d002)

@nyalldawson nyalldawson merged commit 9a800b4 into qgis:master Jun 19, 2024
29 checks passed
@nyalldawson nyalldawson deleted the remove_multiple branch June 19, 2024 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Delete multiple connections based on selection in browser not possible
2 participants